PhD

The LaTeX sources of my Ph.D. thesis
git clone https://esimon.eu/repos/PhD.git
Log | Files | Refs | README | LICENSE

multir.tex (845B)


      1 \begin{algorithmic}
      2 	\Function{MultiR}{}
      3 		\FunctionInput{}  \(\dataSet_\relationSet^\vctr{e}\) \rlap{a supervised multi-instance dataset}
      4 		\FunctionOutput{} \(\vctr{\theta}\) model parameters
      5 		\State
      6 		\State \(\vctr{\theta} \gets \mtrx{0}\)
      7 		\Loop
      8 			\ForAll{\((\vctr{x}_i, \vctr{y}_i)\in\dataSet^\vctr{e}_\relationSet\)}
      9 				\State \(\displaystyle(\vctr{y}', \vctr{z}') \gets \argmax_{\vctr{y}, \vctr{z}} P(\vctr{y}, \vctr{z}\mid \vctr{x}_i; \vctr{\theta})\)
     10 				\If{\(\vctr{y}'\neq \vctr{y}_i\)}
     11 					\State \(\displaystyle\vctr{z}^*\gets \argmax_{\vctr{z}} P(\vctr{z}\mid \vctr{x}_i, \vctr{y}_i; \vctr{\theta})\)
     12 					\State \(\mtrx{\theta}\gets\mtrx{\theta} + \vctr{\phi}(\vctr{x}_i, \vctr{z}^*) - \vctr{\phi}(\vctr{x}_i, \vctr{z}') \)
     13 				\EndIf
     14 			\EndFor
     15 		\EndLoop
     16 		\State \Output \(\vctr{\theta}\)
     17 	\EndFunction
     18 \end{algorithmic}